n1.1
import random
n=int(input())
for i in range(n):
        yy=random.randint(-50, 50)
        xx=random.randint(-50, 50)
        print(yy)
        print(xx)
n1.2
a=0
import random
n=int(input())
for i in range(n):
    x=random.randint(-50, 50)
    y=random.randint(-50, 50)
    print(x, y)
    if x>=0:
        a=a+1
        print(a)
n2
import random
n=int(input())
for i in range(n):
        yy=random.randint(-150, 150)
        xx=random.randint(-150, 150)
        print(yy, xx)


n3
import random
n=int(input())
for i in range(n):
        nk=random.randint(-250, 250)
        xx=random.randint(-250, 250)
        print(yy, xx)

3.1
import random
n=int(input())
a=0
for i in range(1, n+1):
    xx=random.randint(-250, 250)
    yy=random.randint(-250, 250)
    print(x)
    if xx>0 and yy>0:
        a=a+1
print(a)

3.2
import random
n=int(input())
a=0
for i in range(1, n+1):
    xx=random.randint(-250, 250)
    yy=random.randint(-250, 250)
    print(x)
    if xx<0 and 30>yy>0:
        a=a+1
print(a)

3.3
import random
n=int(input())
a=0
for i in range(1, n+1):
   xx=random.randint(-250, 250)
    yy=random.randint(-250, 250)
    print(xx)
    if xx<-50 and yy<0:
        a=a+1
print(a)
